<?php
// +----------------------------------------------------------------------
// | Author: Stupboy King
// +----------------------------------------------------------------------
namespace app\api\model;
use app\api\model\Common;
class Car extends Common
{
    public function carbrand(){
        return $this->hasOne('CarBrand', 'car_brand_id', 'car_brand_id');
    }
    
    public function cartype(){
        return $this->hasOne('CarType', 'car_type_id', 'car_type_id');
    }
    
    public function caroil(){
        return $this->hasOne('CarOil', 'car_id', 'car_id');
    }
}